package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 水抄历史数据对象 water_meter_datahistory
 *
 * @author ruoyi
 * @date 2025-09-17
 */
public class WaterMeterDatahistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 表号 */
    @Excel(name = "表号")
    private String meterNo;

    private String meterType;

    /** 户号 */
    @Excel(name = "户号")
    private String userId;
    private String userName;

    /** 水表地址 */
    private String waterAddress;

    /** 阀状态 */
    @Excel(name = "阀状态")
    private String controlStatus;

    /** 表底数 */
    @Excel(name = "表底数")
    private String lastReading;

    /** 表读数 */
    @Excel(name = "表读数")
    private String currentReading;

    /** 抄表时间 */
    @Excel(name = "抄表时间")
    private String readDate;

    /** 压力（Kpa） */
    @Excel(name = "压力", readConverterExp = "K=pa")
    private String pressure;

    /** 瞬时流量 */
    @Excel(name = "瞬时流量")
    private String flowRate;

    /** 流速 */
    @Excel(name = "流速")
    private String flowVelocity;

    /** 剩余金额 */
    @Excel(name = "剩余金额")
    private String balance;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    private String picture;

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMeterNo(String meterNo)
    {
        this.meterNo = meterNo;
    }

    public String getMeterNo()
    {
        return meterNo;
    }

    public String getMeterType() {
        return meterType;
    }

    public void setMeterType(String meterType) {
        this.meterType = meterType;
    }

    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }

    public String getWaterAddress() {
        return waterAddress;
    }

    public void setWaterAddress(String waterAddress) {
        this.waterAddress = waterAddress;
    }

    public String getControlStatus() {
        return controlStatus;
    }

    public void setControlStatus(String controlStatus) {
        this.controlStatus = controlStatus;
    }

    public String getLastReading() {
        return lastReading;
    }

    public void setLastReading(String lastReading) {
        this.lastReading = lastReading;
    }

    public String getCurrentReading() {
        return currentReading;
    }

    public void setCurrentReading(String currentReading) {
        this.currentReading = currentReading;
    }

    public void setReadDate(String readDate)
    {
        this.readDate = readDate;
    }

    public String getReadDate()
    {
        return readDate;
    }
    public void setPressure(String pressure)
    {
        this.pressure = pressure;
    }

    public String getPressure()
    {
        return pressure;
    }
    public void setFlowRate(String flowRate)
    {
        this.flowRate = flowRate;
    }

    public String getFlowRate()
    {
        return flowRate;
    }
    public void setFlowVelocity(String flowVelocity)
    {
        this.flowVelocity = flowVelocity;
    }

    public String getFlowVelocity()
    {
        return flowVelocity;
    }
    public void setBalance(String balance)
    {
        this.balance = balance;
    }

    public String getBalance()
    {
        return balance;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("meterNo", getMeterNo())
            .append("userId", getUserId())
            .append("readDate", getReadDate())
            .append("pressure", getPressure())
            .append("flowRate", getFlowRate())
            .append("flowVelocity", getFlowVelocity())
            .append("balance", getBalance())
            .append("createTime", getCreateTime())
            .toString();
    }
}
